import request from '@/utils/request'

// 获取品牌商列表
export function fetchList(data) {
  return request({
    url: '/api/admin/menufacturer/getMenufacturers',
    method: 'post',
    data
  })
}

// 获取单个品牌商信息
export function getMenufacturer(data) {
  return request({
    url: '/api/admin/menufacturer/getMenufacturer',
    method: 'post',
    data
  })
}

// 添加品牌商
export function addMenufacturer(data) {
  return request({
    url: '/api/admin/menufacturer/addMenufacturer',
    method: 'post',
    data
  })
}

// 修改品牌商
export function updateMenufacturer(data) {
  return request({
    url: '/api/admin/menufacturer/updateMenufacturer',
    method: 'post',
    data
  })
}

// 删除品牌商
export function delMenufacturer(data) {
  return request({
    url: '/api/admin/menufacturer/delMenufacturer',
    method: 'post',
    params: data
  })
}